This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~George Rehipipulgon 30.Sep.03 10:55 PM a Web browser Domino Designer6.0.1 CF1Windows 2000
I have to open a notes form (child window) from the parent window. But before the child window opens the parent window (document) needs to be saved and reopened. I am using javascript to do this. Relevant code snippet is given below:
if (CompletedCheck())
{
document.all.SaveOpenForward.click();
var open_forward = document.forms[0].opennextform.value;
if (open_forward == "Yes")
{
callforwardform();
}
}
function callforwardform()
{
try {
var loc;
var id_var = document.forms[0].DealUniqueId.value;
loc = window.parent[0].location.href;
loc = loc.substring(0,loc.lastIndexOf("/")) + "/ChildForm?OpenForm&ParentUNID=" +id_var;
OpenWindow = window.open(loc,"","width=675px,height=460px,top=0px,left=0px,scrollbars=yes");
OpenWindow.focus();
}
catch( e ) {
alert('error in ForwardForm');
}
}
I need to save the parent document before opening the child form as I need the child form to inherit some field values from main document.
The problem is even before the main document is saved and re-opened the child window opens. The parent window continues to process in the background and reopens after the child window has opened.
How do I stop the child window from opening before the parent document is saved and reopened????